﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ReflectionIT_Silverlight_ReportLibrary="clr-namespace:ReflectionIT.Silverlight.ReportLibrary;assembly=ReflectionIT.Silverlight.ReportLibrary" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">

	<Style x:Key="ReportHeaderStyle1" TargetType="ReflectionIT_Silverlight_ReportLibrary:ReportHeader">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ReflectionIT_Silverlight_ReportLibrary:ReportHeader">
					<StackPanel Margin="0,0,0,5" Orientation="Vertical" d:LayoutOverrides="Height">
						<Border x:Name="LayoutRoot" BorderBrush="Black" BorderThickness="2" CornerRadius="3" Background="Beige" Margin="0,0,0,5">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="10"/>
									<ColumnDefinition Width="1*"/>
									<ColumnDefinition Width="Auto"/>
									<ColumnDefinition Width="Auto"/>
									<ColumnDefinition Width="10"/>
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto"/>
									<RowDefinition Height="Auto"/>
								</Grid.RowDefinitions>
								<TextBlock x:Name="textBlockTitle" Grid.Column="1" FontWeight="Bold" HorizontalAlignment="Left" Grid.Row="0" Text="{Binding Title, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Top"/>
								<TextBlock x:Name="textBlockSubTitle" Grid.Column="1" HorizontalAlignment="Left" Grid.Row="1" Text="{Binding SubTitle, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Top"/>
								<TextBlock x:Name="textBlockPageText" Grid.Column="2" HorizontalAlignment="Left" Margin="0,0,5,0" Grid.Row="0" Text="{Binding PageText, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Top"/>
								<TextBlock x:Name="textBlockPageValue" Grid.Column="3" HorizontalAlignment="Left" Grid.Row="0" Text="{Binding PageValue, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Top"/>
								<TextBlock x:Name="textBlockDateText" Grid.Column="2" HorizontalAlignment="Left" Margin="0,0,5,0" Grid.Row="1" Text="{Binding DateText, RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Top"/>
								<TextBlock x:Name="textBlockDateValue" Grid.Column="3" HorizontalAlignment="Left" Grid.Row="1" Text="{Binding DateValue, RelativeSource={RelativeSource TemplatedParent}, StringFormat=\{0:d\}}" VerticalAlignment="Top"/>
							</Grid>
						</Border>
						<TextBlock TextWrapping="Wrap" Text="HeaderText" Foreground="Red"/>
					</StackPanel>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>
